#pragma once
#include <iostream>
using std::cout;
class Fraction
{
	int numerator, denominator;
public:
	Fraction(void);
	Fraction(int, int);
	Fraction(Fraction &src);
	~Fraction(void);
	Fraction& operator+(Fraction&);
	Fraction& operator-(Fraction&);
	Fraction& operator*(Fraction&);
	Fraction& operator/(Fraction&);
	bool operator==(Fraction&);
	bool operator<=(Fraction&);
	bool operator>=(Fraction&);
	bool operator<(Fraction&);
	bool operator>(Fraction&);
	void operator=(Fraction&);
	operator int();
	operator double();
	void Print();
	int common_denom(Fraction&);
	Fraction& cancel();
	int Fraction::gcd();	
};

